| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| public static final long | DEFAULT_MESSAGE_POLL_FREQUENCY
Default value for agent-client-message-poll-time |
| private final long | |
| private final FactoryManager | |
| public static final String | MESSAGE_POLL_FREQUENCY
Time to wait for new incoming messages before checking if the client is still active |
| private final Queue | |
| private final AtomicBoolean | |
| private final long | |
| private Future | |
| private final Buffer |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides org. Implements java. Closes this channel. |
| public String | |
| public FactoryManager | |
| public boolean | |
| protected void | |
| protected synchronized Buffer | |
| public void | |
| protected void | |
| public String | |
| protected Buffer |
| authSocket | back to summary |
|---|---|
| private final String authSocket | |
| DEFAULT_MESSAGE_POLL_FREQUENCY | back to summary |
|---|---|
| public static final long DEFAULT_MESSAGE_POLL_FREQUENCY Default value for agent-client-message-poll-time | |
| handle | back to summary |
|---|---|
| private final long handle | |
| manager | back to summary |
|---|---|
| private final FactoryManager manager | |
| MESSAGE_POLL_FREQUENCY | back to summary |
|---|---|
| public static final String MESSAGE_POLL_FREQUENCY Time to wait for new incoming messages before checking if the client is still active | |
| messages | back to summary |
|---|---|
| private final Queue<Buffer> messages | |
| open | back to summary |
|---|---|
| private final AtomicBoolean open | |
| pool | back to summary |
|---|---|
| private final long pool | |
| pumper | back to summary |
|---|---|
| private Future<?> pumper | |
| receiveBuffer | back to summary |
|---|---|
| private final Buffer receiveBuffer | |
| AgentClient | back to summary |
|---|---|
| public AgentClient(FactoryManager manager, String authSocket) throws IOException | |
| AgentClient | back to summary |
|---|---|
| public AgentClient(FactoryManager manager, String authSocket, CloseableExecutorService executor) throws IOException | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides org. Implements java. Doc from java. Closes this channel. After a channel is closed, any further attempt to invoke I/O
operations upon it will cause a If this channel is already closed then invoking this method has no effect. This method may be invoked at any time. If some other thread has already invoked it, however, then another invocation will block until the first invocation is complete, after which it will return without effect.
| |
| getAuthSocket | back to summary |
|---|---|
| public String getAuthSocket() | |
| getFactoryManager | back to summary |
|---|---|
| public FactoryManager getFactoryManager() Implements org.
| |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements java. Doc from java. Tells whether or not this channel is open.
| |
| messageReceived | back to summary |
|---|---|
| protected void messageReceived(Buffer buffer) throws Exception | |
| request | back to summary |
|---|---|
| protected synchronized Buffer request(Buffer buffer) throws IOException Implements abstract org.
| |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| throwException | back to summary |
|---|---|
| protected void throwException(int code) throws IOException transform an APR error number in a more fancy exception
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| waitForMessageBuffer | back to summary |
|---|---|
| protected Buffer waitForMessageBuffer() throws IOException | |