Constructor and Description |
---|
MessageEndpoint(String uid,
Object target,
ProtocolType protocolType,
MessageEndpointDelegate delegate)
Initializes a CBLMessageEndpoint object.
|
Modifier and Type | Method and Description |
---|---|
MessageEndpointDelegate |
getDelegate()
Gets the delegate object used for creating MessageEndpointConnection objects.
|
ProtocolType |
getProtocolType()
Gets the data transportation protocol of the endpoint.
|
Object |
getTarget()
Gets the target object which is an arbitrary object that represents the endpoint.
|
String |
getUid()
Gets the unique identifier of the endpoint.
|
String |
toString() |
public MessageEndpoint(@NonNull String uid, Object target, @NonNull ProtocolType protocolType, @NonNull MessageEndpointDelegate delegate)
uid
- the unique identifier of the endpointtarget
- an optional arbitrary object that represents the endpointprotocolType
- the data transportation protocoldelegate
- the delegate for creating MessageEndpointConnection objects@NonNull public String getUid()
public Object getTarget()
@NonNull public ProtocolType getProtocolType()
@NonNull public MessageEndpointDelegate getDelegate()