Package com.ultikits.ultitools.utils
Class AgentConnection.AttemptEvents
java.lang.Object
com.ultikits.ultitools.utils.AgentConnection.AttemptEvents
- All Implemented Interfaces:
AgentConnection.SocketEvents
- Enclosing class:
AgentConnection
private final class AgentConnection.AttemptEvents
extends Object
implements AgentConnection.SocketEvents
One attempt's socket events: each posts onto the agent scheduler carrying its attempt id.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidonOpen()The upgrade was accepted.voidvoidonUpgradeRefused(int httpStatus, UpgradeRejection rejection)
-
Field Details
-
id
private final long id
-
-
Constructor Details
-
AttemptEvents
AttemptEvents(long id)
-
-
Method Details
-
onOpen
public void onOpen()Description copied from interface:AgentConnection.SocketEventsThe upgrade was accepted.- Specified by:
onOpenin interfaceAgentConnection.SocketEvents
-
onText
- Specified by:
onTextin interfaceAgentConnection.SocketEvents- Parameters:
text- an inbound text frame
-
onUpgradeRefused
- Specified by:
onUpgradeRefusedin interfaceAgentConnection.SocketEvents- Parameters:
httpStatus- the refused upgrade's statusrejection- the parsed response
-
onClosed
- Specified by:
onClosedin interfaceAgentConnection.SocketEvents- Parameters:
code- the close codereason- the close reasonremote- whether the peer closed
-