Package io.vertx.mutiny.ext.stomp
Class Destination
- java.lang.Object
- 
- io.vertx.mutiny.ext.stomp.Destination
 
- 
 public class Destination extends Object 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 theoriginalnon Mutiny-ified interface using Vert.x codegen.
- 
- 
Field SummaryFields Modifier and Type Field Description static TypeArg<Destination>__TYPE_ARG
 - 
Constructor SummaryConstructors Constructor Description Destination(io.vertx.ext.stomp.Destination delegate)Destination(Object delegate)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanack(StompServerConnection connection, io.vertx.ext.stomp.Frame frame)static Destinationbridge(Vertx vertx, io.vertx.ext.stomp.BridgeOptions options)Stringdestination()Destinationdispatch(StompServerConnection connection, io.vertx.ext.stomp.Frame frame)booleanequals(Object o)io.vertx.ext.stomp.DestinationgetDelegate()List<String>getSubscriptions(StompServerConnection connection)inthashCode()booleanmatches(String address)booleannack(StompServerConnection connection, io.vertx.ext.stomp.Frame frame)static DestinationnewInstance(io.vertx.ext.stomp.Destination arg)intnumberOfSubscriptions()static Destinationqueue(Vertx vertx, String destination)Destinationsubscribe(StompServerConnection connection, io.vertx.ext.stomp.Frame frame)static Destinationtopic(Vertx vertx, String destination)StringtoString()booleanunsubscribe(StompServerConnection connection, io.vertx.ext.stomp.Frame frame)DestinationunsubscribeConnection(StompServerConnection connection)
 
- 
- 
- 
Field Detail- 
__TYPE_ARGpublic static final TypeArg<Destination> __TYPE_ARG 
 
- 
 - 
Constructor Detail- 
Destinationpublic Destination(io.vertx.ext.stomp.Destination delegate) 
 - 
Destinationpublic Destination(Object delegate) 
 
- 
 - 
Method Detail- 
getDelegatepublic io.vertx.ext.stomp.Destination getDelegate() 
 - 
topicpublic static Destination topic(Vertx vertx, String destination) 
 - 
queuepublic static Destination queue(Vertx vertx, String destination) 
 - 
bridgepublic static Destination bridge(Vertx vertx, io.vertx.ext.stomp.BridgeOptions options) 
 - 
destinationpublic String destination() - Returns:
- the destination address.
 
 - 
dispatchpublic Destination dispatch(StompServerConnection connection, io.vertx.ext.stomp.Frame frame) - Parameters:
- connection- the connection
- frame- the frame
- Returns:
- the current instance of Destination
 
 - 
subscribepublic Destination subscribe(StompServerConnection connection, io.vertx.ext.stomp.Frame frame) - Parameters:
- connection- the connection
- frame- the- SUBSCRIBEframe
- Returns:
- the current instance of Destination
 
 - 
unsubscribepublic boolean unsubscribe(StompServerConnection connection, io.vertx.ext.stomp.Frame frame) - Parameters:
- connection- the connection
- frame- the- UNSUBSCRIBEframe
- Returns:
- trueif the un-subscription has been handled,- falseotherwise.
 
 - 
unsubscribeConnectionpublic Destination unsubscribeConnection(StompServerConnection connection) - Parameters:
- connection- the connection
- Returns:
- the current instance of Destination
 
 - 
ackpublic boolean ack(StompServerConnection connection, io.vertx.ext.stomp.Frame frame) - Parameters:
- connection- the connection
- frame- the- ACKframe
- Returns:
- trueif the destination has handled the frame (meaning it has sent the message with id)
 
 - 
nackpublic boolean nack(StompServerConnection connection, io.vertx.ext.stomp.Frame frame) - Parameters:
- connection- the connection
- frame- the- NACKframe
- Returns:
- trueif the destination has handled the frame (meaning it has sent the message with id)
 
 - 
getSubscriptionspublic List<String> getSubscriptions(StompServerConnection connection) - Parameters:
- connection- the connection (client)
- Returns:
- the list of subscription id, empty if none
 
 - 
numberOfSubscriptionspublic int numberOfSubscriptions() - Returns:
- the number of subscriptions.
 
 - 
matchespublic boolean matches(String address) - Parameters:
- address- the address
- Returns:
- trueif it matches,- falseotherwise.
 
 - 
newInstancepublic static Destination newInstance(io.vertx.ext.stomp.Destination arg) 
 
- 
 
-