You can implement the listener
com.gemstone.gemfire.cache.client.internal.EndpointManager.EndpointListener
which
has an endpointCrashed() method. This listener is to be registered with the
EndpointManager.

The ping thread invokes this listener, you can set the ping interval using
PoolFactory#setPingInterval()

Thanks!
Swapnil.

On Thu, Sep 24, 2015 at 12:40 PM, Eric Pederson <[email protected]> wrote:

> Hi all:
>
>
>
> Currently if the entire cluster goes down a client can find out in one of
> two ways: 1)  ACQStatusListener will fire onCqDisconnected or 2) when we
> do an operation it will throw an exception (NoAvailableServersException,
> NoAvailableLocatorsException, etc).   Some of our client applications are
> publish-only, that is, they don’t have any CQs.  These applications might
> not publish again for a few hours.  We’d like to be notified right away,
> like how CQStatusListener.onCqDisconnected works.  Is there a way to do
> that, outside of setting up a CQ or a thread that queries the cache every X
> seconds and responds to exceptions?
>
>
>
> Thanks,
>
> -- Eric
>

Reply via email to