greskell-websocket-1.0.0.3: Haskell client for Gremlin Server using WebSocket serializer
MaintainerToshio Ito <debug.ito@gmail.com>
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.Greskell.WebSocket.Connection.Settings

Description

 
Synopsis

Settings

data Settings s Source #

Settings for making connection to Gremlin Server.

You can get the default Settings by defSettings function, and customize its fields by accessor functions.

Type s is the body of Response.

accessor functions

codec :: Settings s -> Codec s Source #

codec for the connection.

endpointPath :: Settings s -> String Source #

Path of the WebSocket endpoint. Default: "/gremlin"

onGeneralException :: Settings s -> GeneralException -> IO () Source #

An exception handler for GeneralException. This exception is not fatal, so the connection survives after this handler is called. You don't have to re-throw the exception. Default: print the exception to stderr.

responseTimeout :: Settings s -> Int Source #

Time out (in seconds) for responses. It is the maximum time for which the connection waits for a response to complete after it sends a request. If the response consists of more than one ResponseMessages, the timeout applies to the last of the ResponseMessages. Default: 60

concurrency :: Settings s -> Int Source #

Maximum concurrent requests the connection can make to the server. If the client tries to make more concurrent requests than this value, later requests are queued in the connection or the client may be blocked. Default: 4

requestQueueSize :: Settings s -> Int Source #

Size of the internal queue of requests. Usually you don't need to customize the field. See also concurrency. Default: 8.