public final class FileService extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
long |
addReader(FileReader reader)
Adds a file reader and return it's generated readerId.
|
static FileService |
getInstance()
Retrieve the singleton instance of FileService.
|
com.google.protobuf.Message |
handleGetFile(RpcRequests.GetFileRequest request,
RpcRequestClosure done)
Handle GetFileRequest, run the response or set the response with done.
|
boolean |
removeReader(long readerId)
Remove the reader by readerId.
|
public static FileService getInstance()
public com.google.protobuf.Message handleGetFile(RpcRequests.GetFileRequest request, RpcRequestClosure done)
public long addReader(FileReader reader)
public boolean removeReader(long readerId)
Copyright © 2021. All rights reserved.