class CommandExecutorSelector {

    public static ExecutorService getExecutorService(final boolean isOccupyThreadForPerConnection, final boolean supportHint, final TransactionType transactionType, final ChannelId channelId) {
        return isOccupyThreadForPerConnection(isOccupyThreadForPerConnection, supportHint, transactionType)
                ? ChannelThreadExecutorGroup.getInstance().get(channelId) : UserExecutorGroup.getInstance().getExecutorService();
    }

}