Class RemoteIndexSupport
- java.lang.Object
 - 
- org.linuxforhealth.fhir.persistence.helper.RemoteIndexSupport
 
 
- 
public class RemoteIndexSupport extends java.lang.ObjectUtility methods supporting the fhir-remote-index consumer 
- 
- 
Constructor Summary
Constructors Constructor Description RemoteIndexSupport() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.gson.GsongetGson()Get an instance of Gson configured to support serialization/deserialization of remote index messages (sent through Kafka as strings)static java.lang.StringmarshallToString(RemoteIndexMessage message)Marshall the RemoteIndexMessage to a JSON stringstatic RemoteIndexMessageunmarshall(java.lang.String jsonPayload)Unmarshall the JSON payload parameter as a RemoteIndexMessage 
 - 
 
- 
- 
Method Detail
- 
getGson
public static com.google.gson.Gson getGson()
Get an instance of Gson configured to support serialization/deserialization of remote index messages (sent through Kafka as strings)- Returns:
 
 
- 
unmarshall
public static RemoteIndexMessage unmarshall(java.lang.String jsonPayload)
Unmarshall the JSON payload parameter as a RemoteIndexMessage- Parameters:
 jsonPayload-- Returns:
 
 
- 
marshallToString
public static java.lang.String marshallToString(RemoteIndexMessage message)
Marshall the RemoteIndexMessage to a JSON string- Parameters:
 message-- Returns:
 
 
 - 
 
 -