public class DriverProxy
extends java.lang.Object
Writes commands into the client conductor buffer.
Note: this class is not thread safe and is expecting to be called under the ClientConductor main lock.
| Modifier and Type | Field and Description |
|---|---|
static int |
MSG_BUFFER_CAPACITY
Maximum capacity of the write buffer
|
| Constructor and Description |
|---|
DriverProxy(org.agrona.concurrent.ringbuffer.RingBuffer toDriverCommandBuffer,
long clientId) |
| Modifier and Type | Method and Description |
|---|---|
long |
addCounter(int typeId,
org.agrona.DirectBuffer keyBuffer,
int keyOffset,
int keyLength,
org.agrona.DirectBuffer labelBuffer,
int labelOffset,
int labelLength) |
long |
addCounter(int typeId,
java.lang.String label) |
long |
addDestination(long registrationId,
java.lang.String endpointChannel) |
long |
addExclusivePublication(java.lang.String channel,
int streamId) |
long |
addPublication(java.lang.String channel,
int streamId) |
long |
addSubscription(java.lang.String channel,
int streamId) |
long |
clientClose() |
long |
removeCounter(long registrationId) |
long |
removeDestination(long registrationId,
java.lang.String endpointChannel) |
long |
removePublication(long registrationId) |
long |
removeSubscription(long registrationId) |
void |
sendClientKeepalive() |
long |
timeOfLastDriverKeepaliveMs() |
public static final int MSG_BUFFER_CAPACITY
public DriverProxy(org.agrona.concurrent.ringbuffer.RingBuffer toDriverCommandBuffer,
long clientId)
public long timeOfLastDriverKeepaliveMs()
public long addPublication(java.lang.String channel,
int streamId)
public long addExclusivePublication(java.lang.String channel,
int streamId)
public long removePublication(long registrationId)
public long addSubscription(java.lang.String channel,
int streamId)
public long removeSubscription(long registrationId)
public void sendClientKeepalive()
public long addDestination(long registrationId,
java.lang.String endpointChannel)
public long removeDestination(long registrationId,
java.lang.String endpointChannel)
public long addCounter(int typeId,
org.agrona.DirectBuffer keyBuffer,
int keyOffset,
int keyLength,
org.agrona.DirectBuffer labelBuffer,
int labelOffset,
int labelLength)
public long addCounter(int typeId,
java.lang.String label)
public long removeCounter(long registrationId)
public long clientClose()
Copyright © 2014-2017 Real Logic Ltd. All Rights Reserved.