org.netcrusher.NetFreezer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of netcrusher-core Show documentation
Show all versions of netcrusher-core Show documentation
NetCrusher is a TCP/UDP proxy that allows yout to test your services for failover
The newest version!
package org.netcrusher;
public interface NetFreezer {
/**
* Freezes all activity on the component. Sockets remain open
* @see NetFreezer#unfreeze()
* @see NetFreezer#isFrozen()
*/
void freeze();
/**
* Unfreezes activity on component
* @see NetFreezer#freeze()
* @see NetFreezer#isFrozen()
*/
void unfreeze();
/**
* Checks is the component frozen
* @return Return true if the crusher is frozen (or is closed)
* @throws IllegalStateException Throwed if the component is not open
* @see NetFreezer#freeze()
* @see NetFreezer#unfreeze()
*/
boolean isFrozen();
}