hudson.plugins.jabber.im
Class AbstractIMConnection
java.lang.Object
hudson.plugins.jabber.im.AbstractIMConnection
- All Implemented Interfaces:
- IMConnection
public abstract class AbstractIMConnection
- extends java.lang.Object
- implements IMConnection
|
Method Summary |
void |
close()
Closes the connection (includes logout) and releases resources. |
protected abstract void |
close0()
|
boolean |
connect()
Establish the connection an login. |
protected abstract boolean |
connect0()
|
protected abstract boolean |
isConnected()
|
protected void |
lock()
|
protected boolean |
tryLock(long time,
java.util.concurrent.TimeUnit timeUnit)
|
protected void |
tryReconnect()
Starts an asynchronous reconnection attempt |
protected void |
unlock()
|
protected void |
updateIMStatus()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractIMConnection
protected AbstractIMConnection(IMPublisherDescriptor desc)
connect
public final boolean connect()
- Description copied from interface:
IMConnection
- Establish the connection an login.
- Specified by:
connect in interface IMConnection
connect0
protected abstract boolean connect0()
lock
protected final void lock()
tryLock
protected final boolean tryLock(long time,
java.util.concurrent.TimeUnit timeUnit)
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
unlock
protected final void unlock()
tryReconnect
protected void tryReconnect()
- Starts an asynchronous reconnection attempt
updateIMStatus
protected void updateIMStatus()
isConnected
protected abstract boolean isConnected()
close
public final void close()
- Description copied from interface:
IMConnection
- Closes the connection (includes logout) and releases resources.
- Specified by:
close in interface IMConnection
close0
protected abstract void close0()
Copyright © 2009. All Rights Reserved.