| Modifier and Type | Field and Description |
|---|---|
static ScheduledThreadPoolExecutor |
EXECUTOR |
| Modifier and Type | Method and Description |
|---|---|
static void |
append(StringBuilder sb,
String separator,
String value) |
static void |
benchmark(String name,
int count,
Runnable runnable) |
static void |
benchmarkComplete(String name,
int count,
long startTime) |
static void |
benchmarkMT(int threadsN,
String name,
int count,
CountDownLatch outsideLatch,
Runnable runnable) |
static void |
benchmarkMT(int threadsN,
String name,
int count,
Runnable runnable) |
static int |
bytesToInt(String s) |
static long |
bytesToLong(String s) |
static short |
bytesToShort(String s) |
static <K,V> Map<K,V> |
cast(Map<?,?> map) |
static void |
connect(String address,
int port,
F2<Void,BufferedReader,DataOutputStream> protocol) |
static Object |
decode(ByteBuffer buf) |
static long |
decodeLong(ByteBuffer buf) |
static Object |
deserialize(byte[] buf) |
static Object |
deserialize(ByteBuffer buf) |
static void |
encode(long value,
ByteBuffer buf) |
static void |
encode(Object value,
ByteBuffer buf) |
static void |
endMeasure() |
static void |
endMeasure(long count,
String info) |
static void |
endMeasure(String info) |
static String |
fillIn(String template,
Object... namesAndValues) |
static String |
fillIn(String template,
String placeholder,
String value) |
static Class<?> |
getCallingClassOf(Class<?> calledClass) |
static int |
intFrom(byte a,
byte b,
byte c,
byte d) |
static boolean |
isRapidoidType(Class<?> clazz) |
static void |
joinThread(Thread thread) |
static void |
listen(int port,
F2<Void,BufferedReader,DataOutputStream> protocol) |
static void |
listen(String hostname,
int port,
F2<Void,BufferedReader,DataOutputStream> protocol) |
static RapidoidThread |
loop(Runnable loop) |
static <T> Map<String,T> |
lowercase(Map<String,T> map) |
static void |
microHttpServer(String hostname,
int port,
F2<String,String,List<String>> handler) |
static void |
multiThreaded(int threadsN,
org.rapidoid.lambda.Mapper<Integer,Void> executable) |
static void |
multiThreaded(int threadsN,
Runnable executable) |
static Throwable |
rootCause(Throwable e) |
static <T extends Serializable> |
serializable(Object value) |
static byte[] |
serialize(Object value) |
static void |
serialize(Object value,
ByteBuffer buf) |
static short |
shortFrom(byte a,
byte b) |
static String |
stackTraceOf(Throwable e) |
static void |
startMeasure() |
static byte[] |
toBytes(Object obj) |
static String |
urlDecode(String value) |
static void |
waitFor(Object obj) |
static boolean |
waitInterruption(long millis) |
public static final ScheduledThreadPoolExecutor EXECUTOR
public static byte[] serialize(Object value)
public static Object deserialize(byte[] buf)
public static void serialize(Object value, ByteBuffer buf)
public static Object deserialize(ByteBuffer buf)
public static void encode(long value,
ByteBuffer buf)
public static void encode(Object value, ByteBuffer buf)
public static long decodeLong(ByteBuffer buf)
public static Object decode(ByteBuffer buf)
public static void connect(String address, int port, F2<Void,BufferedReader,DataOutputStream> protocol)
public static void listen(int port,
F2<Void,BufferedReader,DataOutputStream> protocol)
public static void listen(String hostname, int port, F2<Void,BufferedReader,DataOutputStream> protocol)
public static void microHttpServer(String hostname, int port, F2<String,String,List<String>> handler)
public static short bytesToShort(String s)
public static int bytesToInt(String s)
public static long bytesToLong(String s)
public static int intFrom(byte a,
byte b,
byte c,
byte d)
public static short shortFrom(byte a,
byte b)
public static boolean waitInterruption(long millis)
public static void waitFor(Object obj)
public static void joinThread(Thread thread)
public static void benchmarkComplete(String name, int count, long startTime)
public static void benchmarkMT(int threadsN,
String name,
int count,
CountDownLatch outsideLatch,
Runnable runnable)
public static void startMeasure()
public static void endMeasure()
public static void endMeasure(String info)
public static void endMeasure(long count,
String info)
public static void multiThreaded(int threadsN,
org.rapidoid.lambda.Mapper<Integer,Void> executable)
public static void multiThreaded(int threadsN,
Runnable executable)
public static void append(StringBuilder sb, String separator, String value)
public static <T extends Serializable> T serializable(Object value)
public static RapidoidThread loop(Runnable loop)
public static boolean isRapidoidType(Class<?> clazz)
public static byte[] toBytes(Object obj)
Copyright © 2014–2015 Nikolche Mihajlovski and contributors. All rights reserved.