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 Record
attachments()
void
close()
transition local state to CLOSEDvoid
free()
free the endpoint and any associated resourcesErrorCondition
getCondition()
protected abstract ConnectionImpl
getConnectionImpl()
java.lang.Object
getContext()
EndpointState
getLocalState()
ErrorCondition
getRemoteCondition()
EndpointState
getRemoteState()
void
open()
transition local state to ACTIVEvoid
setCondition(ErrorCondition condition)
Set the local error conditionvoid
setContext(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:Endpoint
transition local state to ACTIVE
-
close
public void close()
Description copied from interface:Endpoint
transition local state to CLOSED
-
getLocalState
public EndpointState getLocalState()
- Specified by:
getLocalState
in interfaceEndpoint
- Returns:
- the local endpoint state
-
getRemoteState
public EndpointState getRemoteState()
- Specified by:
getRemoteState
in interfaceEndpoint
- Returns:
- the remote endpoint state (as last communicated)
-
getCondition
public ErrorCondition getCondition()
- Specified by:
getCondition
in interfaceEndpoint
- Returns:
- the local endpoint error, or null if there is none
-
setCondition
public void setCondition(ErrorCondition condition)
Description copied from interface:Endpoint
Set the local error condition- Specified by:
setCondition
in interfaceEndpoint
-
getRemoteCondition
public ErrorCondition getRemoteCondition()
- Specified by:
getRemoteCondition
in 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:Endpoint
free the endpoint and any associated resources
-
getContext
public java.lang.Object getContext()
- Specified by:
getContext
in interfaceEndpoint
- See Also:
Endpoint.setContext(Object)
-
setContext
public void setContext(java.lang.Object context)
Description copied from interface:Endpoint
Sets an arbitrary an application owned object on the end-point. This object is not used by Proton.- Specified by:
setContext
in interfaceEndpoint
-
attachments
public Record attachments()
- Specified by:
attachments
in interfaceExtendable
-
-