public class AgentGate<A extends AsyncAgent> extends java.lang.Object implements ClientObject<ClientContext>
AsyncAgent
is received.Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptAgent(A agent) |
A |
awaitAgentFinished() |
A |
awaitAgentFinished(long millis,
java.util.concurrent.TimeUnit unit) |
void |
awaitAgentStarted(long millis,
java.util.concurrent.TimeUnit unit) |
ClientContext |
getClientContext()
Returns the the client runtime environment
|
public AgentGate(A agent)
public ClientContext getClientContext()
ClientObject
getClientContext
in interface ClientObject<ClientContext>
public void awaitAgentStarted(long millis, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
java.lang.InterruptedException
java.util.concurrent.TimeoutException
public A awaitAgentFinished(long millis, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.TimeoutException
java.lang.InterruptedException
java.util.concurrent.TimeoutException
public A awaitAgentFinished() throws java.lang.InterruptedException
java.lang.InterruptedException
protected boolean acceptAgent(A agent)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.