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

io.higgs.core.StaticUtil Maven / Gradle / Ivy

package io.higgs.core;

import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelHandlerContext;

/**
 * @author Courtney Robinson 
 */
public final class StaticUtil {
    private StaticUtil() {
    }

    public static ChannelFuture write(Channel channel, Object o) {
        return channel.writeAndFlush(o);
    }

    public static ChannelFuture write(ChannelHandlerContext ctx, Object o) {
        return ctx.writeAndFlush(o);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy