java.lang.Object
org.newsclub.net.unix.tipc.AFTIPCTopologyEvent
A TIPC topology event received by the
AFTIPCTopologyWatcher
as a result of an
AFTIPCTopologySubscription
.- Author:
- Christian Kohlschütter
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Some TIPC error code. -
Method Summary
Modifier and TypeMethodDescriptionboolean
org.newsclub.net.unix.AFTIPCSocketAddress
The corresponding socket address.int
The found range's lower value.int
The found range's upper value.@Nullable String
Returns the link name for a link state event requested byAFTIPCTopologySubscription.TIPC_LINK_STATE
orAFTIPCTopologyWatcher.addLinkStateSubscription()
.The corresponding subscription that found this event.getType()
The event type.int
hashCode()
boolean
Returnstrue
iff the corresponding subscription has theAFTIPCTopologySubscription.Flags.TIPC_SUB_CANCEL
flag set.boolean
isPort()
Returnstrue
iff the corresponding subscription has theAFTIPCTopologySubscription.Flags.TIPC_SUB_PORTS
flag set.boolean
Returnstrue
iff the event type isAFTIPCTopologyEvent.Type.TIPC_PUBLISHED
.boolean
Returnstrue
iff the corresponding subscription has theAFTIPCTopologySubscription.Flags.TIPC_SUB_SERVICE
flag set.boolean
Returnstrue
iff the event type isAFTIPCTopologyEvent.Type.TIPC_SUBSCR_TIMEOUT
.boolean
Returnstrue
iff the event type isAFTIPCTopologyEvent.Type.TIPC_WITHDRAWN
.toBuffer()
Converts this event message to a newByteBuffer
.toString()
-
Method Details
-
toString
-
toBuffer
Converts this event message to a newByteBuffer
.- Returns:
- The new buffer, ready to read from.
- Throws:
IOException
- on error.
-
getType
-
getFoundLower
public int getFoundLower()The found range's lower value.- Returns:
- The lower value.
-
getFoundUpper
public int getFoundUpper()The found range's upper value.- Returns:
- The upper value.
-
getAddress
public org.newsclub.net.unix.AFTIPCSocketAddress getAddress()The corresponding socket address.- Returns:
- The socket address.
-
getSubscription
The corresponding subscription that found this event.- Returns:
- The subscription.
-
isPublished
public boolean isPublished()Returnstrue
iff the event type isAFTIPCTopologyEvent.Type.TIPC_PUBLISHED
.- Returns:
true
if this a "published" event.
-
isWithdrawn
public boolean isWithdrawn()Returnstrue
iff the event type isAFTIPCTopologyEvent.Type.TIPC_WITHDRAWN
.- Returns:
true
if this a "withdrawn" event.
-
isTimeout
public boolean isTimeout()Returnstrue
iff the event type isAFTIPCTopologyEvent.Type.TIPC_SUBSCR_TIMEOUT
.- Returns:
true
if this a "timeout" event.
-
isPort
public boolean isPort()Returnstrue
iff the corresponding subscription has theAFTIPCTopologySubscription.Flags.TIPC_SUB_PORTS
flag set.- Returns:
true
if this a event referring to a "port" subscription.
-
isService
public boolean isService()Returnstrue
iff the corresponding subscription has theAFTIPCTopologySubscription.Flags.TIPC_SUB_SERVICE
flag set.- Returns:
true
if this a event referring to a "service" subscription.
-
isCancellationRequest
public boolean isCancellationRequest()Returnstrue
iff the corresponding subscription has theAFTIPCTopologySubscription.Flags.TIPC_SUB_CANCEL
flag set.- Returns:
true
if this a event referring to a "cancellation" subscription request.
-
hashCode
-
equals
-
getLinkName
Returns the link name for a link state event requested byAFTIPCTopologySubscription.TIPC_LINK_STATE
orAFTIPCTopologyWatcher.addLinkStateSubscription()
. A link name is something like "f875a40e707d:eth0-8c1645f2ce27:eth0"- Returns:
- The link name, or
null
if unsupported. - Throws:
IOException
- on error.
-