Cancel a sessionless signal in java

asked 2014-10-01 00:18:54 -0700

PierreR gravatar image

I have a sessionless signal with no TTL that I would like to cancel. I'm using the java binding and I've seen there is a cancelSessionlessSignal method on the SignalEmitter object, but it requires a serialNum argument to identify the signal to be cancelled, and I don't see how to get this id in java.

Is there anyway, with the java binding, to get the signal serial number ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-10-01 11:23:52 -0700

bspencer gravatar image

When using the Java Language binding you will want to first get the message context for the emitter and then the serial value will be the id:

emitter.getMessageContext().serial https://allseenalliance.org/docs/api/java/org/alljoyn/bus/SignalEmitter.html#getMessageContext() https://allseenalliance.org/docs/api/java/org/alljoyn/bus/MessageContext.html#serial

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-10-01 00:18:54 -0700

Seen: 86 times

Last updated: Oct 01 '14