java.lang.Object
io.ebeaninternal.server.transaction.DefaultProfileHandler
- All Implemented Interfaces:
Plugin,SpiProfileHandler
Default profile handler.
Uses ConcurrentLinkedQueue to minimise contention on threads calling collectTransactionProfile().
Uses a sleep backoff on the single threaded consumer that reads the profiles and writes them to files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcollectTransactionProfile(TransactionProfile transactionProfile) Low contention adding the transaction profile to the queue.voidcreateProfileStream(ProfileLocation location) Create and return a ProfileStream.voidonline(boolean online) voidshutdown()
-
Constructor Details
-
DefaultProfileHandler
-
-
Method Details
-
collectTransactionProfile
Low contention adding the transaction profile to the queue. Minimise the impact to the normal transaction processing (threads).- Specified by:
collectTransactionProfilein interfaceSpiProfileHandler- Parameters:
transactionProfile- The transaction profile that has just been collected
-
createProfileStream
Create and return a ProfileStream.- Specified by:
createProfileStreamin interfaceSpiProfileHandler- Parameters:
location- The profile location
-
configure
-
online
public void online(boolean online) -
shutdown
public void shutdown()
-