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
public abstract class EndpointImpl extends java.lang.Object implements ProtonJEndpoint
-
-
Constructor Summary
Constructors Constructor Description EndpointImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Recordattachments()voidclose()transition local state to CLOSEDvoidfree()free the endpoint and any associated resourcesErrorConditiongetCondition()protected abstract ConnectionImplgetConnectionImpl()java.lang.ObjectgetContext()EndpointStategetLocalState()ErrorConditiongetRemoteCondition()EndpointStategetRemoteState()voidopen()transition local state to ACTIVEvoidsetCondition(ErrorCondition condition)Set the local error conditionvoidsetContext(java.lang.Object context)Sets an arbitrary an application owned object on the end-point.
-
-
-
Method Detail
-
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
public EndpointState getLocalState()
- Specified by:
getLocalStatein interfaceEndpoint- Returns:
- the local endpoint state
-
getRemoteState
public EndpointState getRemoteState()
- Specified by:
getRemoteStatein interfaceEndpoint- Returns:
- the remote endpoint state (as last communicated)
-
getCondition
public ErrorCondition getCondition()
- Specified by:
getConditionin interfaceEndpoint- Returns:
- the local endpoint error, or null if there is none
-
setCondition
public void setCondition(ErrorCondition condition)
Description copied from interface:EndpointSet the local error condition- Specified by:
setConditionin interfaceEndpoint
-
getRemoteCondition
public ErrorCondition getRemoteCondition()
- Specified by:
getRemoteConditionin interfaceEndpoint- Returns:
- the remote endpoint error, or null if there is none
-
getConnectionImpl
protected abstract ConnectionImpl getConnectionImpl()
-
free
public final void free()
Description copied from interface:Endpointfree the endpoint and any associated resources
-
getContext
public java.lang.Object getContext()
- Specified by:
getContextin interfaceEndpoint- See Also:
Endpoint.setContext(Object)
-
setContext
public void setContext(java.lang.Object context)
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
public Record attachments()
- Specified by:
attachmentsin interfaceExtendable
-
-