class BluetoothPeripheral {

    public boolean requestConnectionPriority(final int priority) {

        // Enqueue the request connection priority command and complete is immediately as there is no callback for it
        boolean result = commandQueue.add(new Runnable() {
            @Override
            public void run() {
                if (isConnected()) {
                    if (!bluetoothGatt.requestConnectionPriority(priority)) {
                        Timber.e("could not set connection priority");
                    } else {
                        Timber.d("requesting connection priority %d", priority);
                    }
                    completedCommand();
                }
            }
        });

        if (result) {
            nextCommand();
        } else {
            Timber.e("could not enqueue request connection priority command");
        }
        return result;
    }

      BluetoothPeripheral(@NotNull Context context, @NotNull BluetoothDevice device, @NotNull InternalCallback listener, BluetoothPeripheralCallback peripheralCallback, Handler callbackHandler);

}