|
|
final long | OPEN_TIMEOUT_MS = 10 * 1000 |
| |
|
boolean | reconnectOnError = true |
| |
|
|
static final String | TAG = "EdgeEventsConnection" |
| |
EdgeEventsConnection provides a asynchronous bi-directional connection to the server side DME.
◆ addEdgeEventsIntervalTask()
| boolean com.mobiledgex.matchingengine.EdgeEventsConnection.addEdgeEventsIntervalTask |
( |
EdgeEventsIntervalHandler |
edgeEventsIntervalHandler | ) |
|
Submit a new scheduled task into a managed set of configured EdgeEvents onInterval Tasks. The task will then have its lifetime managed according to the lifecycle of the EdgeEventsConnection status.
- Parameters
-
| the | (scheduled) or started task to add. |
◆ getLocation()
| Location com.mobiledgex.matchingengine.EdgeEventsConnection.getLocation |
( |
| ) |
|
Get Location. This is a blocking call.
◆ getOpenTimeoutMs()
| long com.mobiledgex.matchingengine.EdgeEventsConnection.getOpenTimeoutMs |
( |
| ) |
|
Gets the timeout for opening a connection.
◆ reconnect()
◆ removeEdgeEventsIntervalTask()
| boolean com.mobiledgex.matchingengine.EdgeEventsConnection.removeEdgeEventsIntervalTask |
( |
EdgeEventsIntervalHandler |
edgeEventsIntervalHandler | ) |
|
Remove a Scheduled EdgeEvents Task. This will attempt to stop, then remove the task.
- Parameters
-
| edgeEventsIntervalHandler | the task to remove. |
◆ setOpenTimeout()
| void com.mobiledgex.matchingengine.EdgeEventsConnection.setOpenTimeout |
( |
long |
timeoutMs | ) |
|
Sets the timeout to open a connection.
- Parameters
-
| timeoutMs | timeout in MS. If <= 0, uses default. |