public interface ILicenseServerListener
Modifier and Type | Method and Description |
---|---|
default PropCnr |
getCommProp(boolean newInstance)
Returns the property class to add when connection is established.
|
void |
onClosed(ILicenceSystemComm comm)
Called when the connection is closed.
|
default void |
onCommState(ILicenceSystemComm comm,
SocketCommNIO.State state)
Called when the communication state changes.
|
void |
onConnected(ILicenceSystemComm comm)
Called when the connection is established.
|
default PropCnr getCommProp(boolean newInstance)
You must override this method as it returns null
by default.
Note: calling this method several times must always return the same instance depending on the flag. The name of the property is changed when the connection to the license server is established. You may then invoke remove events, etc.
newInstance
- Flag for a new property instance or the same one as before.newInstance
is true, otherwise
the same instance as before (allocate if needed). Return null if this
property is not needed.default void onCommState(ILicenceSystemComm comm, SocketCommNIO.State state)
Override to process, the default is to do nothing.
comm
- The license system communication controller interface.state
- The communication state.void onConnected(ILicenceSystemComm comm)
comm
- The license system communication controller interface.void onClosed(ILicenceSystemComm comm)
comm
- The license system communication controller interface.iizi® is a registered trademark of Mindus SARL. © Copyright 2019 Mindus SARL. All rights reserved.