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 TypeMethodDescriptionvoid
close()
transition local state to CLOSEDfinal void
free()
free the endpoint and any associated resourcesprotected abstract ConnectionImpl
void
open()
transition local state to ACTIVEvoid
setCondition
(ErrorCondition condition) Set the local error conditionvoid
setContext
(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:Endpoint
transition local state to ACTIVE -
close
public void close()Description copied from interface:Endpoint
transition local state to CLOSED -
getLocalState
- Specified by:
getLocalState
in interfaceEndpoint
- Returns:
- the local endpoint state
-
getRemoteState
- Specified by:
getRemoteState
in interfaceEndpoint
- Returns:
- the remote endpoint state (as last communicated)
-
getCondition
- Specified by:
getCondition
in interfaceEndpoint
- Returns:
- the local endpoint error, or null if there is none
-
setCondition
Description copied from interface:Endpoint
Set the local error condition- Specified by:
setCondition
in interfaceEndpoint
- Parameters:
condition
-
-
getRemoteCondition
- Specified by:
getRemoteCondition
in interfaceEndpoint
- Returns:
- the remote endpoint error, or null if there is none
-
getConnectionImpl
-
free
public final void free()Description copied from interface:Endpoint
free the endpoint and any associated resources -
getContext
- Specified by:
getContext
in interfaceEndpoint
- See Also:
-
setContext
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
- Specified by:
attachments
in interfaceExtendable
-