public interface ActivityLifeCycle
Super-interface common to all lifecycles objects of a given
Connection
.
The 4 kind of objects (Filter
, Query
, Subscription
and Transaction
) that implement this interface:
makeSomething
methods of their
Context
,
CommunicationLifeCycle
Field Summary | |
---|---|
static int |
RESULT_INVALID_CONNECTION_STATUS
Failure-code returned when an operation is requested whitin a not correct status of the associated Connection. |
Fields inherited from interface LifeCycle |
---|
RESULT_GENERIC_ERROR, RESULT_INVALID_STATUS, RESULT_OK, STATUS_INIT, STATUS_RELEASED |
Method Summary | |
---|---|
Connection |
getConnection()
Returns the associated Connection. |
Methods inherited from interface CommunicationLifeCycle |
---|
getContext, getListener, getParam |
Methods inherited from interface LifeCycle |
---|
enumChilds, getStatus, release |
Field Detail |
---|
static final int RESULT_INVALID_CONNECTION_STATUS
Typically an ActivityLifeCycle objects returns this failure-code when the
associated Connection is not in the Connection.STATUS_CONNECTED
status.
Method Detail |
---|
Connection getConnection()
Each ActivityLifeCycle object has a Connection that created it (e.g. for
a Subscription
the associated Connection is the first parameter
of Context.makeSubscription()
).
This method return this Connection.
null
is never returned.