public class PhysicalConnectionTarget extends PhysicalAttachPoint
dataTypes| Constructor and Description |
|---|
PhysicalConnectionTarget() |
PhysicalConnectionTarget(org.fabric3.api.model.type.contract.DataType... types) |
| Modifier and Type | Method and Description |
|---|---|
java.util.function.Consumer<?> |
getConsumer()
Returns the consumer for receiving messages from this connection.
|
java.lang.Class<?> |
getServiceInterface()
Returns the Java interface for the service contract.
|
java.lang.String |
getTargetId()
Returns an id for the connection target.
|
java.lang.String |
getTopic()
Returns the topic name this connection is associated with.
|
boolean |
isDirectConnection()
Returns true if the connection as a direct connection, i.e.
|
void |
setConsumer(java.util.function.Consumer<?> consumer)
Sets the consumer for receiving messages from this connection.
|
void |
setDirectConnection(boolean directConnection)
Sets the connection as a direct connection, i.e.
|
void |
setServiceInterface(java.lang.Class<?> interfaze)
Sets the Java interface for the service contract.
|
void |
setTopic(java.lang.String topic)
Sets the topic name this connection is associated with.
|
getClassLoader, getDataTypes, getUri, setClassLoader, setUripublic PhysicalConnectionTarget()
public PhysicalConnectionTarget(org.fabric3.api.model.type.contract.DataType... types)
public java.lang.String getTargetId()
public boolean isDirectConnection()
public void setDirectConnection(boolean directConnection)
directConnection - true if this is a direct connectionpublic java.lang.Class<?> getServiceInterface()
public void setServiceInterface(java.lang.Class<?> interfaze)
interfaze - the Java interface for the service contractpublic void setTopic(java.lang.String topic)
topic - the topicpublic java.lang.String getTopic()
public void setConsumer(java.util.function.Consumer<?> consumer)
consumer - the consumerpublic java.util.function.Consumer<?> getConsumer()