All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jgroups.UpHandler Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version

package org.jgroups;

import org.jgroups.util.MessageBatch;

/**
 * Provides a hook to hijack all events received by a certain channel which has installed this UpHandler.

* Client usually never need to implement this interface and it is mostly used by JGroups building blocks. * @since 2.0 * @author Bela Ban */ public interface UpHandler { /** * Invoked for all channel events except connection management and state transfer. */ Object up(Event evt); Object up(Message msg); default void up(MessageBatch batch) { for(Message msg: batch) { try { up(msg); } catch(Throwable t) { } } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy