org.eclipse.net4j.signal.failover
Class FailOverStrategy

java.lang.Object
  extended by org.eclipse.net4j.util.event.Notifier
      extended by org.eclipse.net4j.signal.failover.FailOverStrategy
All Implemented Interfaces:
IFailOverStrategy, INotifier, INotifier.Introspection
Direct Known Subclasses:
RetryFailOverStrategy

public abstract class FailOverStrategy
extends Notifier
implements IFailOverStrategy


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
INotifier.Introspection
 
Field Summary
 
Fields inherited from interface org.eclipse.net4j.signal.failover.IFailOverStrategy
NOOP
 
Constructor Summary
FailOverStrategy()
           
 
Method Summary
protected  void failOver(SignalProtocol protocol)
           
protected abstract  IConnector getNewConnector(IChannel oldChannel)
          Should be overridden to provide a fail-over IConnector.
<RESULT> RESULT
send(RequestWithConfirmation<RESULT> request)
           
<RESULT> RESULT
send(RequestWithConfirmation<RESULT> request, long timeout)
           
 
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, fireEvent, getListeners, hasListeners, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, removeListener
 

Constructor Detail

FailOverStrategy

public FailOverStrategy()
Method Detail

send

public <RESULT> RESULT send(RequestWithConfirmation<RESULT> request)
            throws java.lang.Exception
Specified by:
send in interface IFailOverStrategy
Throws:
java.lang.Exception

send

public <RESULT> RESULT send(RequestWithConfirmation<RESULT> request,
                            long timeout)
            throws java.lang.Exception
Specified by:
send in interface IFailOverStrategy
Throws:
java.lang.Exception

failOver

protected void failOver(SignalProtocol protocol)

getNewConnector

protected abstract IConnector getNewConnector(IChannel oldChannel)
Should be overridden to provide a fail-over IConnector. The oldChannel can be used as a hint.


Copyright (c) 2004 - 2008 Eike Stepper, Germany.
All Rights Reserved.