Package io.vertx.mutiny.ext.stomp
Class Destination
java.lang.Object
io.vertx.mutiny.ext.stomp.Destination
- All Implemented Interfaces:
MutinyDelegate
Represents a STOMP destination.
Depending on the implementation, the message delivery is different. Queue are sending message to only one
subscribers, while topics are broadcasting the message to all subscribers.
Implementations must be thread-safe.
NOTE: This class has been automatically generated from the
original non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDestination(io.vertx.ext.stomp.Destination delegate) Destination(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanack(StompServerConnection connection, io.vertx.ext.stomp.Frame frame) static Destinationdispatch(StompServerConnection connection, io.vertx.ext.stomp.Frame frame) booleanio.vertx.ext.stomp.DestinationgetSubscriptions(StompServerConnection connection) inthashCode()booleanbooleannack(StompServerConnection connection, io.vertx.ext.stomp.Frame frame) static DestinationnewInstance(io.vertx.ext.stomp.Destination arg) intstatic Destinationsubscribe(StompServerConnection connection, io.vertx.ext.stomp.Frame frame) static DestinationtoString()booleanunsubscribe(StompServerConnection connection, io.vertx.ext.stomp.Frame frame) unsubscribeConnection(StompServerConnection connection)
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
Destination
public Destination(io.vertx.ext.stomp.Destination delegate) -
Destination
-
-
Method Details
-
getDelegate
public io.vertx.ext.stomp.Destination getDelegate()- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
topic
-
queue
-
bridge
-
destination
- Returns:
- the destination address.
-
dispatch
- Parameters:
connection- the connectionframe- the frame- Returns:
- the current instance of
Destination
-
subscribe
- Parameters:
connection- the connectionframe- theSUBSCRIBEframe- Returns:
- the current instance of
Destination
-
unsubscribe
- Parameters:
connection- the connectionframe- theUNSUBSCRIBEframe- Returns:
trueif the un-subscription has been handled,falseotherwise.
-
unsubscribeConnection
- Parameters:
connection- the connection- Returns:
- the current instance of
Destination
-
ack
- Parameters:
connection- the connectionframe- theACKframe- Returns:
trueif the destination has handled the frame (meaning it has sent the message with id)
-
nack
- Parameters:
connection- the connectionframe- theNACKframe- Returns:
trueif the destination has handled the frame (meaning it has sent the message with id)
-
getSubscriptions
- Parameters:
connection- the connection (client)- Returns:
- the list of subscription id, empty if none
-
numberOfSubscriptions
public int numberOfSubscriptions()- Returns:
- the number of subscriptions.
-
matches
- Parameters:
address- the address- Returns:
trueif it matches,falseotherwise.
-
newInstance
-