ServiceRemotingMessageHeaders Class
- java.
lang. Object - Serializable
- microsoft.
servicefabric. services. remoting. ServiceRemotingMessageHeaders
- microsoft.
public class ServiceRemotingMessageHeaders
Specifies the headers that are sent along with a ServiceRemoting message.
Constructor Summary
Constructor | Description | |
---|---|---|
ServiceRemotingMessageHeaders() |
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String headerName, byte[] headerValue)
Adds a new header with the specified name and value. |
Service |
deserialize(byte[] buffer)
De-serializes the byte array to a ServiceRemotingMessageHeaders object |
String | getCallContext() |
String | getCancellationHeaderName() |
HashMap<String, byte[]> | getHeaders() |
byte [] |
getHeaderValue(String headerName)
Gets the header with the specified name |
int |
getInterfaceId()
The interface id of the remote interface. |
int |
getMethodId()
The methodId of the remote method |
byte [] |
serialize(ServiceRemotingMessageHeaders msg)
Serializes the headers to a byte array |
void | setCallContext(String callContext) |
void |
setHeaders(HashMap<String, byte[]> headers)
Adds a new header with the specified name and value. |
void |
setInterfaceId(int interfaceId)
The interface id of the remote interface. |
void |
setMethodId(int methodId)
The methodId of the remote method |
Constructor Details
ServiceRemotingMessageHeaders
public ServiceRemotingMessageHeaders()
Method Details
addHeader
public void addHeader(String headerName, byte[] headerValue)
Adds a new header with the specified name and value.
Parameters:
Throws:
deserialize
public static ServiceRemotingMessageHeaders deserialize(byte[] buffer)
De-serializes the byte array to a ServiceRemotingMessageHeaders object
Parameters:
Returns:
Throws:
getCallContext
public String getCallContext()
getCancellationHeaderName
public static String getCancellationHeaderName()
getHeaders
public HashMap
getHeaderValue
public byte [] getHeaderValue(String headerName)
Gets the header with the specified name
Parameters:
Returns:
getInterfaceId
public int getInterfaceId()
The interface id of the remote interface.
Returns:
getMethodId
public int getMethodId()
The methodId of the remote method
Returns:
serialize
public static byte [] serialize(ServiceRemotingMessageHeaders msg)
Serializes the headers to a byte array
Parameters:
Returns:
Throws:
setCallContext
public void setCallContext(String callContext)
Parameters:
setHeaders
public void setHeaders(HashMap
Adds a new header with the specified name and value.
Parameters:
setInterfaceId
public void setInterfaceId(int interfaceId)
The interface id of the remote interface.
Parameters:
setMethodId
public void setMethodId(int methodId)
The methodId of the remote method
Parameters:
Applies to
Azure SDK for Java