本文整理汇总了Java中com.sun.nio.sctp.ShutdownNotification类的典型用法代码示例。如果您正苦于以下问题:Java ShutdownNotification类的具体用法?Java ShutdownNotification怎么用?Java ShutdownNotification使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ShutdownNotification类属于com.sun.nio.sctp包,在下文中一共展示了ShutdownNotification类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handleNotification
import com.sun.nio.sctp.ShutdownNotification; //导入依赖的package包/类
@Override
public HandlerResult handleNotification(
ShutdownNotification sn, Object unused)
{
debug("ShutdownNotification: " + sn);
return HandlerResult.CONTINUE;
}
示例2: handleNotification
import com.sun.nio.sctp.ShutdownNotification; //导入依赖的package包/类
@Override
public HandlerResult handleNotification(
ShutdownNotification notification, Object attachment) {
debug("ShutdownNotification");
debug(" Association: " + notification.association());
return HandlerResult.RETURN;
}
示例3: handleNotification
import com.sun.nio.sctp.ShutdownNotification; //导入依赖的package包/类
@Override
public HandlerResult handleNotification(
ShutdownNotification notification, Object attachment) {
debug("ShutdownNotification");
debug(" Association: " + notification.association());
return HandlerResult.CONTINUE;
}
示例4: handleNotification
import com.sun.nio.sctp.ShutdownNotification; //导入依赖的package包/类
@Override
public HandlerResult handleNotification(
ShutdownNotification sn, BooleanWrapper bool)
{
bool.booleanValue(true);
debug(sn.toString());
return HandlerResult.RETURN;
}
示例5: handleNotification
import com.sun.nio.sctp.ShutdownNotification; //导入依赖的package包/类
@Override
public HandlerResult handleNotification(
ShutdownNotification notification, Object attachment) {
debug("ShutdownNotification");
debug(" Association: " + notification.association());
fail("Shutdown should not be received");
return HandlerResult.RETURN;
}