public abstract class EndpointImpl extends Object implements ProtonJEndpoint
| Constructor and Description |
|---|
EndpointImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
transition local state to CLOSED
|
void |
free()
free the endpoint and any associated resources
|
ErrorCondition |
getCondition() |
protected abstract ConnectionImpl |
getConnectionImpl() |
Object |
getContext() |
EndpointState |
getLocalState() |
ErrorCondition |
getRemoteCondition() |
EndpointState |
getRemoteState() |
protected abstract void |
localStateChanged() |
void |
open()
transition local state to ACTIVE
|
void |
setCondition(ErrorCondition condition)
Set the local error condition
|
void |
setContext(Object context)
Sets an arbitrary an application owned object on the end-point.
|
String |
toString() |
protected abstract void localStateChanged()
public void open()
Endpointpublic void close()
Endpointpublic EndpointState getLocalState()
getLocalState in interface Endpointpublic EndpointState getRemoteState()
getRemoteState in interface Endpointpublic ErrorCondition getCondition()
getCondition in interface Endpointpublic void setCondition(ErrorCondition condition)
EndpointsetCondition in interface Endpointpublic ErrorCondition getRemoteCondition()
getRemoteCondition in interface Endpointprotected abstract ConnectionImpl getConnectionImpl()
public void free()
Endpointpublic Object getContext()
getContext in interface EndpointEndpoint.setContext(Object)public void setContext(Object context)
EndpointsetContext in interface EndpointCopyright © 2014 The Apache Software Foundation. All rights reserved.