This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BleCommandExecutor implements CommandExecutor { | |
private final BleDevice bleDevice; | |
private final Executor executor = Executors.newSingleThreadExecutor(); | |
private final Map<String, Queue<CommandCallback<String>>> callbacks = new ConcurrentHashMap<>(); | |
public BleCommandExecutor(BleDevice bleDevice) { | |
this.bleDevice = bleDevice; | |
} | |
@Override |