Class EndpointImpl
java.lang.Object
org.apache.qpid.proton.engine.impl.EndpointImpl
- All Implemented Interfaces:
Endpoint,Extendable,ProtonJEndpoint
- Direct Known Subclasses:
ConnectionImpl,LinkImpl,SessionImpl,TransportImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()transition local state to CLOSEDfinal voidfree()free the endpoint and any associated resourcesprotected abstract ConnectionImplvoidopen()transition local state to ACTIVEvoidsetCondition(ErrorCondition condition) Set the local error conditionvoidsetContext(Object context) Sets an arbitrary an application owned object on the end-point.
-
Constructor Details
-
EndpointImpl
public EndpointImpl()
-
-
Method Details
-
open
public void open()Description copied from interface:Endpointtransition local state to ACTIVE -
close
public void close()Description copied from interface:Endpointtransition local state to CLOSED -
getLocalState
- Specified by:
getLocalStatein interfaceEndpoint- Returns:
- the local endpoint state
-
getRemoteState
- Specified by:
getRemoteStatein interfaceEndpoint- Returns:
- the remote endpoint state (as last communicated)
-
getCondition
- Specified by:
getConditionin interfaceEndpoint- Returns:
- the local endpoint error, or null if there is none
-
setCondition
Description copied from interface:EndpointSet the local error condition- Specified by:
setConditionin interfaceEndpoint
-
getRemoteCondition
- Specified by:
getRemoteConditionin interfaceEndpoint- Returns:
- the remote endpoint error, or null if there is none
-
getConnectionImpl
-
free
public final void free()Description copied from interface:Endpointfree the endpoint and any associated resources -
getContext
- Specified by:
getContextin interfaceEndpoint- See Also:
-
setContext
Description copied from interface:EndpointSets an arbitrary an application owned object on the end-point. This object is not used by Proton.- Specified by:
setContextin interfaceEndpoint
-
attachments
- Specified by:
attachmentsin interfaceExtendable
-