Class FHIRPersistenceContextImpl.Builder
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.context.impl.FHIRPersistenceContextImpl.Builder
-
- Enclosing class:
- FHIRPersistenceContextImpl
public static class FHIRPersistenceContextImpl.Builder extends java.lang.Object
Builder to create new instances of FHIRPersistenceContextImpl
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder(FHIRPersistenceEvent event)
Protected constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FHIRPersistenceContext
build()
Build the FHIRPersistenceContext implementationFHIRPersistenceContextImpl.Builder
withHistoryContext(FHIRHistoryContext historyContext)
Build with the given historyContextFHIRPersistenceContextImpl.Builder
withIfNoneMatch(java.lang.Integer ifNoneMatch)
Build with the ifNoneMatch valueFHIRPersistenceContextImpl.Builder
withOffloadResponse(PayloadPersistenceResponse offloadResponse)
Build with the given offloadResponseFHIRPersistenceContextImpl.Builder
withRequestShard(java.lang.String requestShard)
Build with the requestShard valueFHIRPersistenceContextImpl.Builder
withSearchContext(FHIRSearchContext searchContext)
Build with the given searchContext
-
-
-
Constructor Detail
-
Builder
protected Builder(FHIRPersistenceEvent event)
Protected constructor- Parameters:
event
-
-
-
Method Detail
-
build
public FHIRPersistenceContext build()
Build the FHIRPersistenceContext implementation- Returns:
-
withSearchContext
public FHIRPersistenceContextImpl.Builder withSearchContext(FHIRSearchContext searchContext)
Build with the given searchContext- Parameters:
searchContext
-- Returns:
-
withHistoryContext
public FHIRPersistenceContextImpl.Builder withHistoryContext(FHIRHistoryContext historyContext)
Build with the given historyContext- Parameters:
historyContext
-- Returns:
-
withIfNoneMatch
public FHIRPersistenceContextImpl.Builder withIfNoneMatch(java.lang.Integer ifNoneMatch)
Build with the ifNoneMatch value- Parameters:
ifNoneMatch
-- Returns:
-
withRequestShard
public FHIRPersistenceContextImpl.Builder withRequestShard(java.lang.String requestShard)
Build with the requestShard value- Parameters:
requestShard
-- Returns:
-
withOffloadResponse
public FHIRPersistenceContextImpl.Builder withOffloadResponse(PayloadPersistenceResponse offloadResponse)
Build with the given offloadResponse- Parameters:
offloadResponse
-- Returns:
-
-